import request from '@/utils/request'
const baseUrl = '/cz-yard/api/v1/yards' //箱贸易管理

// ### 发布堆场:批量下架
// ## 

export const offShelf = (data: any) => {
    return request({
        url: baseUrl+'/offShelf',
        method: 'PUT',
        data:data
    })
}
// ### 发布堆场:批量上架
// ## 

export const onShelf = (data: any) => {
    return request({
        url: baseUrl+'/onShelf',
        method: 'PUT',
        data:data
    })
}
// ### 发布堆场:批量删除
// ## 

export const deleteYard = (data: any) => {
    return request({
        url: baseUrl,
        method: 'DELETE',
        data:data
    })
}

// ### 发布堆场:获取详情
// ## 

export const getYardInfo = (data: any) => {
    return request({
        url: baseUrl+"/"+ data,
        method: 'GET',
        data:data
    })
}


// ### 发布堆场:堆场查询分页列表
// ## 

export const yardSelfPage = (data: any) => {
    return request({
        url: baseUrl+'/yardSelfPage',
        method: 'POST',
        data:data
    })
}



// ### 发布堆场:保存待发布(编辑增加id 传参)
// ## 

export const tobeReleased = (data: any) => {
    return request({
        url: baseUrl+'/tobeReleased',
        method: 'POST',
        data:data
    })
}

// ### 发布堆场:提交发布(编辑增加id 传参)
export const submit = (data: any) => {
    return request({
        url: baseUrl+'/submit',
        method: 'POST',
        data:data
    })
}
// ### 发布堆场:放入已下架(编辑增加id 传参)
export const inWarehouse = (data: any) => {
    return request({
        url: baseUrl+'/inWarehouse',
        method: 'POST',
        data:data
    })
}